package com.hwh.serviceIm;

import java.util.ArrayList;

import com.hwh.dao.SellersDao;
import com.hwh.daoIm.BuyersDaoImp;
import com.hwh.daoIm.SellersDaoImp;
import com.hwh.service.SellersService;
import com.hwh.vo.Buyers;
import com.hwh.vo.Sellers;

public class SellersServiceImpl implements SellersService {

	// 查询全部卖家用户
	public ArrayList<Sellers> getSellers() {
		ArrayList<Sellers> sellers = new ArrayList<Sellers>();
		SellersDao sellersDaoImpl = new SellersDaoImp();
		sellers = sellersDaoImpl.getSellers();
		return sellers;
	}

	// 卖家用户登录
	public Sellers sellerLogin(Sellers sell) {
		SellersDaoImp bdi = new SellersDaoImp();
		Sellers sellers = bdi.buyerLogin(sell);
		return sellers;
	}

	// 卖家用户注册
	public void sellerRegist(Sellers sell) {
		SellersDaoImp bdi = new SellersDaoImp();
		bdi.sellerRegist(sell);

	}

}
